package com.yl.applicationsecurity.controller;

import com.github.pagehelper.PageInfo;
import com.yl.applicationsecurity.pojo.Inspection;
import com.yl.applicationsecurity.pojo.Nation;
import com.yl.applicationsecurity.pojo.Result;
import com.yl.applicationsecurity.service.InspectionService;
import com.yl.applicationsecurity.service.NationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.List;

/**
 * @author 鹤仙问鹿仙
 * @program: Application-security
 * @description:
 * @date 2025-01-07 17:13:26
 */
@RestController
@RequestMapping("/nation")
public class NationController {

    @Autowired
    private NationService nationService;

    @PostMapping("/list")
    public Result list(String name){

        List<Nation> list= nationService.findByname(name);

        return Result.success(list);
    }
}

